import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: () => import('../views/dbdh/dbdh.vue'),
    redirect: '/shouye',
    children: [
      {
        // 首页
        path: 'shouye',
        component: () => import('../views/shouye/shouye.vue')
      },
      {
        // 咨询
        path: 'zixun',
        component: () => import('../views/zixun/zixun.vue')
      },
       {
        //  消息
        path: 'xiaoxi',
        component: () => import('../views/xiaoxi/xiaoxi.vue')
      },
      {
        // 我的
        path: 'wode',
        component: () => import('../views/wode/wode.vue')
      }
    ]
  },
  { path: '/loging', 
  component: () => import('../views/wode/loging/loging.vue')
  },
    { path: '/bmhd', 
    component: () => import('../views/shouye/bmhd/bmhd.vue')
    },
    { path: '/xkzx', 
    component: () => import('../views/shouye/xkzx/xkzx.vue')
    },
    { path: '/gkk', 
    component: () => import('../views/shouye/gkk/gkk.vue')
    },
    { path: '/rmhd', 
    component: () => import('../views/shouye/rmhd/rmhd.vue')
    },
    { path: '/qbxq', 
    component: () => import('../views/shouye/qbxq/qbxq.vue')
    },
    { path: '/jsxq', 
    component: () => import('../views/shouye/jsxq/jsxq.vue')
    },
    { path: '/kcxq', 
    component: () => import('../views/shouye/kcxq/kcxq.vue')
    },
    { path: '/zxxq', 
    component: () => import('../views/shouye/zxxq/zxxq.vue')
    },
    { path: '/mstj', 
    component: () => import('../views/shouye/mstj/mstj.vue')
    },
    { path: '/gkkxq', 
    component: () => import('../views/shouye/gkkxq/gkkxq.vue')
    },
// 我的
    { path: '/ddjs', 
    component: () => import('../views/wode/ddjs/ddjs.vue')
    },
    { path: '/dkk', 
    component: () => import('../views/wode/dkk/dkk.vue')
    },
    { path: '/dzf', 
    component: () => import('../views/wode/dzf/dzf.vue')
    },
    { path: '/gywm', 
    component: () => import('../views/wode/gywm/gywm.vue')
    },
    { path: '/shez', 
    component: () => import('../views/wode/shez/shez.vue')
    },
    { path: '/tksh', 
    component: () => import('../views/wode/tksh/tksh.vue')
    },
    { path: '/wdhd', 
    component: () => import('../views/wode/wdhd/wdhd.vue')
    },
    { path: '/wdsc', 
    component: () => import('../views/wode/wdsc/wdsc.vue')
    },
    { path: '/wdyhj', 
    component: () => import('../views/wode/wdyhj/wdyhj.vue')
    },
    { path: '/xxz', 
    component: () => import('../views/wode/xxz/xxz.vue')
    },
    { path: '/yjs', 
    component: () => import('../views/wode/yjs/yjs.vue')
    },
    { path: '/zxzx', 
    component: () => import('../views/wode/zxzx/zxzx.vue')
    },

    { path: '/ddxq', 
    component: () => import('../views/wode/ddxq/ddxq.vue')
    },
    { path: '/tkxq', 
    component: () => import('../views/wode/tkxq/tkxq.vue')
    },
    { path: '/sqtk', 
    component: () => import('../views/wode/sqtk/sqtk.vue')
    },
    { path: '/hdxq', 
    component: () => import('../views/wode/hdxq/hdxq.vue')
    },
    { path: '/xgsjh', 
    component: () => import('../views/wode/xgsjh/xgsjh.vue')
    },
    { path: '/xgmm', 
    component: () => import('../views/wode/xgmm/xgmm.vue')
    },
    { path: '/tssz', 
    component: () => import('../views/wode/tssz/tssz.vue')
    },
  ]
  const router = createRouter({
    history: createWebHashHistory(),
    routes
    })

  export default router